using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Phone;
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Media;

namespace BeatingMole
{
    class CInfoLoadingGame
    {
        #region "Variable"
        private Texture2D _textLoading;
        private Song _infoLoadingSong;
        float _delayLoadingMap;
        private SpriteFont _spriteFontTimeLeft;
        ContentManager _Content;
        private Texture2D _loadingHelp;
        private Texture2D _btnOKPlay;
        private Rectangle _recOKPlay;
        #endregion

        #region "Properties"
        public Song InfoLoadingSong
        {
            set { _infoLoadingSong = value; }
            get { return _infoLoadingSong; }
        }
        public Rectangle RecOKPlay
        {
            set { _recOKPlay = value; }
            get { return _recOKPlay; }
        }
        public Texture2D BtnOKPlay
        {
            set { _btnOKPlay = value; }
            get { return _btnOKPlay; }
        }
        public Texture2D LoadingHelp
        {
            set { _loadingHelp = value; }
            get { return _loadingHelp; }
        }
        public SpriteFont SpriteFontTimeLeft
        {
            set { _spriteFontTimeLeft = value; }
            get { return _spriteFontTimeLeft; }
        }
        public float DelayLoadingMap
        {
            set { _delayLoadingMap = value; }
            get { return _delayLoadingMap; }
        }
        public Texture2D TextLoading
        {
            set { _textLoading = value; }
            get { return _textLoading; }
        }
        #endregion

        #region "Constructor"
        public CInfoLoadingGame(ContentManager content)
        {
            _Content = content;
            InfoLoadingSong = _Content.Load<Song>(@"Resource/Sound/MenuMusic2");
            TextLoading = _Content.Load<Texture2D>(@"Resource/Maps/LoadingLevel1");
            SpriteFontTimeLeft = _Content.Load<SpriteFont>(@"Resource/Font/LoadingGame");
            LoadingHelp = _Content.Load<Texture2D>(@"Resource/Help/Help1");
            BtnOKPlay = _Content.Load<Texture2D>(@"Resource/Help/OKPlay");
            RecOKPlay = new Rectangle(575, 325, BtnOKPlay.Width, BtnOKPlay.Height);
            DelayLoadingMap = 10000;
        }
        #endregion
    }
}
